package day1212;

public class File11 {
    public static void main(String[] args) {
        method(2000,2024);
    }

    public static  void method(int startYear, int endYear) {
        //2000   2024
        int year=2000;
        while(year<=2024){
            if(   year % 400 == 0   ||   (year%4==0 &&  year % 100 != 0 )){
                System.out.println(year+"是闰年");
            }else{
                System.out.println(year+"不是世纪闰年");
            }
            year++;
        }
    }

}

